import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 滴漏设备数据
 */
public class LeakThrough {

    /**
     * 内部数据段
     */
    static class DataPair {
        //时戳
        private int time;
        //管道温度
        private float pipelineTemp;
        //补偿器温度
        private float compensatorTemp;
        //湿度
        private float humidity;

        public DataPair(int time, float pipelineTemp, float compensatorTemp, float humidity) {
            this.time = time;
            this.pipelineTemp = pipelineTemp;
            this.compensatorTemp = compensatorTemp;
            this.humidity = humidity;
        }

        public int getTime() {
            return time;
        }

        public void setTime(int time) {
            this.time = time;
        }

        public float getPipelineTemp() {
            return pipelineTemp;
        }

        public void setPipelineTemp(float pipelineTemp) {
            this.pipelineTemp = pipelineTemp;
        }

        public float getCompensatorTemp() {
            return compensatorTemp;
        }

        public void setCompensatorTemp(float compensatorTemp) {
            this.compensatorTemp = compensatorTemp;
        }

        public float getHumidity() {
            return humidity;
        }

        public void setHumidity(float humidity) {
            this.humidity = humidity;
        }
    }

    //编号
    private String serialNo;

    //时间
    private Date date;

    //状态
    private int status;

    //时段数据
    private List<DataPair> timeFrameData = new ArrayList<>();

    public LeakThrough(String serialNo, Date date) {
        this.serialNo = serialNo;
        this.date = date;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public Date getDate() {
        return date;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<DataPair> getTimeFrameData() {
        return timeFrameData;
    }

    public void setTimeFrameData(List<DataPair> timeFrameData) {
        this.timeFrameData = timeFrameData;
    }
}
